package com.shxc.smarttrade.account.model;

import java.util.List;

/**
 * 更改个人信息展示接口
 */

public class UserUserInfoModel {


    /**
     * data : {"totalVolume":0.01,"yieldRate":0.01,"lossTrade":0,"profitCount":0,"destroyDay":-1,"profitMonth":{"month":[11,10,9,8,7],"profit":[-39.12,123,0,0,0]},"accType":0,"totalCount":0,"profitTrade":0,"accStatus":2,"mt4Id":null,"headUrl":"http://msg.trademaster168.com/img/userPortrait/man.jpg","nick":"66666","equity":200}
     * err_code : 0
     * err_msg : successe
     */

    private DataBean data;
    private String err_code;
    private String err_msg;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getErr_code() {
        return err_code;
    }

    public void setErr_code(String err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public static class DataBean {
        /**
         * totalVolume : 0.01
         * yieldRate : 0.01
         * lossTrade : 0
         * profitCount : 0
         * destroyDay : -1
         * profitMonth : {"month":[11,10,9,8,7],"profit":[-39.12,123,0,0,0]}
         * accType : 0
         * totalCount : 0
         * profitTrade : 0
         * accStatus : 2
         * mt4Id : null
         * headUrl : http://msg.trademaster168.com/img/userPortrait/man.jpg
         * nick : 66666
         * equity : 200
         */

        private double totalVolume;//总手数
        private double yieldRate;//盈利率
        private int lossTrade;//亏损订单
        private double profitCount; //总盈利
        private int destroyDay;//剩余天数 -1 已过期 0 即将过期
        private ProfitMonthBean profitMonth;//收益盈利趋势
        private int accType;//账户类型
        private int totalCount;//总笔数
        private int profitTrade;//盈利订单
        private int accStatus;//账户个数  2表示有多个账户
        private long mt4Id;//模拟账户为null
        private String headUrl;//头像地址
        private String nick;//昵称
        private double equity;//净值

        public double getTotalVolume() {
            return totalVolume;
        }

        public void setTotalVolume(double totalVolume) {
            this.totalVolume = totalVolume;
        }

        public double getYieldRate() {
            return yieldRate;
        }

        public void setYieldRate(double yieldRate) {
            this.yieldRate = yieldRate;
        }

        public int getLossTrade() {
            return lossTrade;
        }

        public void setLossTrade(int lossTrade) {
            this.lossTrade = lossTrade;
        }

        public double getProfitCount() {
            return profitCount;
        }

        public void setProfitCount(double profitCount) {
            this.profitCount = profitCount;
        }

        public int getDestroyDay() {
            return destroyDay;
        }

        public void setDestroyDay(int destroyDay) {
            this.destroyDay = destroyDay;
        }

        public ProfitMonthBean getProfitMonth() {
            return profitMonth;
        }

        public void setProfitMonth(ProfitMonthBean profitMonth) {
            this.profitMonth = profitMonth;
        }

        public int getAccType() {
            return accType;
        }

        public void setAccType(int accType) {
            this.accType = accType;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public int getProfitTrade() {
            return profitTrade;
        }

        public void setProfitTrade(int profitTrade) {
            this.profitTrade = profitTrade;
        }

        public int getAccStatus() {
            return accStatus;
        }

        public void setAccStatus(int accStatus) {
            this.accStatus = accStatus;
        }

        public long getMt4Id() {
            return mt4Id;
        }

        public void setMt4Id(long mt4Id) {
            this.mt4Id = mt4Id;
        }

        public String getHeadUrl() {
            return headUrl;
        }

        public void setHeadUrl(String headUrl) {
            this.headUrl = headUrl;
        }

        public String getNick() {
            return nick;
        }

        public void setNick(String nick) {
            this.nick = nick;
        }

        public double getEquity() {
            return equity;
        }

        public void setEquity(double equity) {
            this.equity = equity;
        }

        public static class ProfitMonthBean {
            private List<Integer> month;//月份
            private List<Double> profit;//盈利金额

            public List<Integer> getMonth() {
                return month;
            }

            public void setMonth(List<Integer> month) {
                this.month = month;
            }

            public List<Double> getProfit() {
                return profit;
            }

            public void setProfit(List<Double> profit) {
                this.profit = profit;
            }
        }
    }
}
